//
//  WebViewController.h
//  AmnesiaMagazine
//
//  Created by Vicente Vicens on 21/07/11.
//  Copyright 2011 Imathink World, S.L.N.E. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WebViewController;

@protocol WebViewControllerDelegate <NSObject>

@optional
- (void)webViewControllerWantsToClose:(WebViewController *)webViewController;

@end


@interface WebViewController : UIViewController <UIWebViewDelegate> {
    
}

@property (nonatomic, assign) id <WebViewControllerDelegate> vvDelegate;
@property (nonatomic, retain) IBOutlet UIToolbar *mainToolbar;
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *backButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *forwardButton;
@property (nonatomic, retain) UIActivityIndicatorView *activity;

- (IBAction)showDoneButton:(id)sender;

- (IBAction)goBackAction:(id)sender;
- (IBAction)goForwardAction:(id)sender;
- (void)checkBarButtonsState;

@end
